package com.fight.strive.sys.modules.auth.utils;

import com.fight.strive.sys.modules.auth.dto.StriveAuthInfo;
import com.fight.strive.sys.modules.auth.service.StriveAuthService;
import com.fight.strive.sys.modules.web.SpringContextHolder;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class AuthUtils {

    public static StriveAuthInfo getCurrentAuth() {
        StriveAuthService striveAuthService =
                SpringContextHolder.getBean(StriveAuthService.class);
        return striveAuthService.getCurrentAuth();
    }
}
